#include <iostream>
using namespace std;

class A{
public:
    A(int a, int b, int c); // 构造函数声明
    int getA() const { return m_a; }
    int getB() const { return m_b; }
    int getC() const { return m_c; }
private:
    int m_a;
    int m_b;
    int m_c;
};

A::A(int a, int b, int c) : m_a(a), m_b(b), m_c(c) {}

int main() {
    cout << "2025新春快乐！！！！" << endl;
    
    A objectA1(10, 20, 30);
    A* objectA2 = new A(1, 2, 3);
    
    // 使用公共成员函数获取数据
    cout << "objectA1: m_a = " << objectA1.getA() 
        << ", m_b = " << objectA1.getB() << ", m_c = " 
        << objectA1.getC() << endl;
    cout << "objectA2: m_a = " << objectA2->getA() 
        << ", m_b = " << objectA2->getB() << ", m_c = " 
        << objectA2->getC() << endl;
    
    delete objectA2; // 释放动态分配的内存
    
    return 0;
}
